package com.cyy.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cyy.common.pojo.entity.Role;
import com.cyy.common.pojo.vo.system.SystemRoleVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author 曹云友
 * @since 2024-03-29
 */
@Mapper
public interface RoleMapper extends BaseMapper<Role> {


    List<String> getRoleCodesByUserId(@Param("userId") Object userId);

    IPage<SystemRoleVo> getPage(@Param("page") Page<?> page,
                                @Param("keywords") String keywords);
}
